<html><head><title>A function to plot parallel plot for repeated measurement data</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" href="Rchm.css">
</head>
<body>

<table width="100%"><tr><td>par.plot(gamlss)</td><td align="right">R Documentation</td></tr></table><object type="application/x-oleobject" classid="clsid:1e2a7bd0-dab9-11d0-b93a-00c04fc99f9e">
<param name="keyword" value="R:   par.plot">
<param name="keyword" value=" A function to plot parallel plot for repeated measurement data">
</object>


<h2>A function to plot parallel plot for repeated measurement data</h2>


<h3>Description</h3>

<p>
This function can be used to plot parallel plots for each individual in a repeated measurement study. 
It is based on the <code>coplot()</code> function of <code>R</code>.
</p>


<h3>Usage</h3>

<pre>
par.plot(formula = NULL, data = NULL, subjects = NULL, 
          color = TRUE, show.given = TRUE, ...)
</pre>


<h3>Arguments</h3>

<table summary="R argblock">
<tr valign="top"><td><code>formula</code></td>
<td>
a formula describing the form of conditioning plot.  A
formula of the form <code>y ~ x | a</code> indicates that plots of <code>y</code>
versus <code>x</code> should be produced conditional on the variable
<code>a</code>.  A formula of the form <code>y ~ x| a * b</code> indicates that
plots of <code>y</code> versus <code>x</code> should be produced conditional on the
two variables <code>a</code> and <code>b</code>.</td></tr>
<tr valign="top"><td><code>data</code></td>
<td>
a data frame containing values for any variables in the
formula.  By default the environment where <code>par.plot</code> was
called from is used.</td></tr>
<tr valign="top"><td><code>subjects</code></td>
<td>
a factor which distinguish between the individual participants </td></tr>
<tr valign="top"><td><code>color</code></td>
<td>
whether the parallel plot are shown in colour, <code>color=TRUE</code> (the default) or not <code>color=FALSE</code>  </td></tr>
<tr valign="top"><td><code>show.given</code></td>
<td>
logical (possibly of length 2 for 2 conditioning variables): 
should conditioning plots be shown for the  corresponding conditioning variables (default 'TRUE')</td></tr>
<tr valign="top"><td><code>...</code></td>
<td>
for extra arguments</td></tr>
</table>

<h3>Details</h3>




<h3>Value</h3>

<p>
It returns a plot.</p>

<h3>Note</h3>

<p>
Note that similar plot can be fount in the library <code>nlme</code> by Pinheiro and Bates
</p>


<h3>Author(s)</h3>

<p>
Mikis Stasinopoulos <a href="mailto:d.stasinopoulos@londonmet.ac.uk">d.stasinopoulos@londonmet.ac.uk</a>
</p>


<h3>References</h3>

<p>
Rigby, R. A. and  Stasinopoulos D. M. (2005). Generalized additive models for location, scale and shape,(with discussion), 
<EM>Appl. Statist.</EM>, <B>54</B>, part 3, pp 507-554.
</p>
<p>
Stasinopoulos D. M., Rigby R.A. and Akantziliotou C. (2006) Instructions on how to use the GAMLSS package in R.
Accompanying documentation in the current GAMLSS  help files, (see also  <a href="http://www.gamlss.com/">http://www.gamlss.com/</a>).
</p>
<p>
Stasinopoulos D. M. Rigby R.A. (2007) Generalized additive models for location scale and shape (GAMLSS) in R.
<EM>Journal of Statistical Software</EM>, Vol. <B>23</B>, Issue 7, Dec 2007, <a href="http://www.jstatsoft.org/v23/i07">http://www.jstatsoft.org/v23/i07</a>.
</p>


<h3>See Also</h3>

<p>
<code><a href="gamlss.html">gamlss</a></code>
</p>


<h3>Examples</h3>

<pre>

library(nlme)
data(Orthodont)
par.plot(distance~age,data=Orthodont,sub=Subject)
par.plot(distance~age|Sex,data=Orthodont,sub=Subject)
par.plot(distance~age|Subject,data=Orthodont,sub=Subject,show.given=FALSE)

</pre>



<hr><div align="center">[Package <em>gamlss</em> version 1.7-9 <a href="00Index.html">Index]</a></div>

</body></html>
